<script>
	import { mapMutations, mapActions, mapState } from 'vuex';
	import Vue from 'vue';
	export default {
		onLaunch: function() {
			var that = this;
			uni.getSystemInfo({//获取手机的状态栏高度单位px
				success: function(e) {
					Vue.prototype.statusHeight = e.statusBarHeight;
					let menu = wx.getMenuButtonBoundingClientRect();//获取获取菜单按钮（右上角胶囊按钮）的布局位置信息。坐标信息以屏幕左上角为原点。（top表示上边框到手机顶部的距离 bottom是下边框到手机顶部的距离）
					Vue.prototype.menu = menu;
					Vue.prototype.barHeight = menu.bottom + menu.top - e.statusBarHeight;
					that.setInfo({'statusHeight':e.statusBarHeight,'menu':menu,'barHeight':menu.bottom + menu.top - e.statusBarHeight}).then(res=>{
						
					})
				},
			})
		},
		methods:{
			...mapActions([
			    'setInfo'
			]),
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/static/css/fontSize.less';
	/*富文本样式 */
	@import url("@/static/richcss/quill.snow.css");
	  @import url("@/static/richcss/quill.core.css");
	  @import url("@/static/richcss/quill.bubble.css");
	 @font-face {
	   font-family: 'iconfont';  /* project id 2346037 */
	   src: url('//at.alicdn.com/t/font_2346037_tnf0ky2oxs.eot');
	   src: url('//at.alicdn.com/t/font_2346037_tnf0ky2oxs.eot?#iefix') format('embedded-opentype'),
	   url('//at.alicdn.com/t/font_2346037_tnf0ky2oxs.woff2') format('woff2'),
	   url('//at.alicdn.com/t/font_2346037_tnf0ky2oxs.woff') format('woff'),
	   url('//at.alicdn.com/t/font_2346037_tnf0ky2oxs.ttf') format('truetype'),
	   url('//at.alicdn.com/t/font_2346037_tnf0ky2oxs.svg#iconfont') format('svg');
	 }
	  .icon {
	  		font-size: 30upx;
	  		font-family: iconfont;
	  		font-style: normal;
	  		display: inline;
	  	}
</style>
